package Base.ProjectTest01.Service;

/*
 * @author 枫城
 * @createTime 2022/10/18 21:29
 * @desc 表示员工的状态
 */
public class Status {

    private final String NAME;

    public String getNAME() {
        return NAME;
    }

    private Status(String name){
        this.NAME = name;
    }

    /*
     * @author 枫城
     * @createTime 2022/10/18 21:31
     * @desc 枚举
     * @param null
     * @return 一个Status
     */
    public static final Status FREE = new Status("FREE");
    public static final Status BUSY = new Status("BUSY");
    public static final Status VOCATION = new Status("VOCATION"); // 休假

    @Override
    public String toString() {
        return NAME ;
    }
}
